package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @param
 * @return
 */
@Mapper
public interface NursingProjectMapper {

    //分页查询所有的数据
    Page<NursingProjectVo> selectByPage(String name, Integer status);

    //查询护理项目被哪些护理计划引用了
    Long getProgectRefCount(Long id);

    //新增护理项目
    void insertNursingProject(NursingProject nursingProject);

    //查询回显
    NursingProjectVo selectNursingProjectById(Long id);

    //修改护理项目
    void updateNursingProject(NursingProject nursingProject);

    //删除护理项目
    void deleteNursingProject(Long id);

    //是否禁用
    void isStatusNursingProject(Long id, Integer status);

    //查询所有的护理项目,在护理计划中需要查出来
    List<NursingProjectVo> getAllNursingProject();
}
